<?php

class Tyh_Core
{
	private static $instance;
	
	protected function __construct()
	{
		self::$instance =& $this;
	}

	public function &getInstance()
	{		
		return self::$instance;
	}
}

function &tyh_get_instance()
{
	return Tyh_Core::getInstance();
}